package ${package.common}.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 持久化对象基类
 * @author ${author}
 * @since ${date}
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode(of = "id", callSuper = false)
public class SnowflakeBasePO extends BasePO {

    /**
     * 主键，雪花算法
     */
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;
}

